package com.yuantu.judiciary.model.domain;

import com.yuantu.judiciary.model.BaseDO;
import com.yuantu.judiciary.model.enums.QueryType;
import lombok.Data;
import org.hibernate.annotations.Comment;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * 查询结果
 *
 * @author syw
 * @since 2023-07-04
 **/
@Data
@Entity
@DynamicUpdate
@Table(name = "query_result")
public class QueryResultDO extends BaseDO {

    /**
     * 实体Id
     */
    @Comment("实体Id")
    private Long entityId;

    /**
     * 查询结果
     */
    @Column(columnDefinition = "text")
    @Comment("查询结果")
    private String result;

    /**
     * 查询类型
     */
    @Enumerated(EnumType.STRING)
    @Column(length = 100, nullable = false)
    @Comment("查询类型")
    private QueryType type;

}
